package com.atguigu.rabbit.producer;

import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @BelongsProject: rabbitmq-parent-0528
 * @BelongsPackage: com.atguigu.rabbit.producer
 * @Author: jiangyi
 * @CreateTime: 2025-09-15  11:44
 * @Description: TODO
 * @Version: 1.0
 */
@SpringBootTest
public class direct01 {
    @Autowired
    private RabbitTemplate rabbitTemplate;

    @Test
    public void directDemo01()
    {
        rabbitTemplate.convertAndSend("direct_exchange","info1","hello direct exchange...");
    }
}
